import http from "./http.js";

export const getDepartment = (data) => {
    let result = http.get(`/dept?user=${data.user}`);
    return result;
}

export const addDepartment = (data) => {
    let result = http.post(`/dept/add`, data);
    return result;
}